package com.smart.manager.weixin.mp.entities.models;


import com.alibaba.fastjson2.JSONObject;
import com.smart.common.entities.core.BaseLongModel;
import com.smart.manager.weixin.mp.entities.enums.MatchType;
import com.smart.manager.weixin.mp.entities.enums.ReplyContentType;
import io.ebean.annotation.DbJson;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;

/**
 * 等级店员
 *
 * @author Administrator
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
public class WeixinMpReply extends BaseLongModel {


    @ApiModelProperty("公众号ID")
    private String appId;


    @ApiModelProperty(value = "回复 关键字")
    private String keyword;

    @ApiModelProperty(value = "匹配类型 EQ/LIKE")
    private MatchType matchType;

    @ApiModelProperty(value = "回复内容类型")
    private ReplyContentType contentType;


    @ApiModelProperty(value = "回复内容")
    @DbJson
    private JSONObject content;

    @ApiModelProperty(value = "关键字触发事件")
    private String event;

}


